import request from '@/config/axios'

export const deptTree = async (params) => {
  return await request.getOriginal({
    url: '/amp/data-scpoe-map/deptTree',
    params
  })
}

export const standardList = async (params) => {
  return await request.getOriginal({
    url: '/amp/data-scpoe-map/standardList',
    params
  })
}

export const sysTree = async (params) => {
  return await request.getOriginal({
    url: '/amp/data-scpoe-map/sysTree',
    params
  })
}

export const dataAuthorizationUpdate = async (data) => {
  return await request.put({
    url: '/amp/data-scpoe-map/update',
    data
  })
}

export const dataAuthorizationCopeScope = async (data) => {
  return await request.post({
    url: '/amp/data-scpoe-map/copeScope',
    data
  })
}
